/**
 * Created with Intellij IDEA.
 * Description;
 * User:墨琦
 * Data:2023-04-10
 * Time:11:09
 */
public class Text1<T> {
    public T[] array=(T[])new Object[10];
    public T getPos(int pos)
    {
        return this.array[pos];
    }
    public void setVal(int pos,T val)
    {
        this.array[pos]=val;
    }

    public static void main(String[] args) {
        Text1<Integer> kk=new Text1<>();
        kk.setVal(0,3);
        kk.setVal(1,4);
         int C= kk.getPos(1);
        System.out.println(C);
    }
}
